<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('PDF预览')" />
</head>
<body>
<input type="hidden" id="url" th:value="${url}"/>
<div class="main-content" id="pdfPreview">
</div>

<th:block th:include="include :: footer" />
<th:block th:include="include :: pdfobject-js" />
<script>
    $(function (){
        let url = $("#url").val();
        PDFObject.embed(url, "#pdfPreview", {
            height: "800px"
        });
    })
</script>
</body>
</html>